import { createRouter, createWebHistory } from 'vue-router'
const routes = [
  {
    path: '/',
    redirect: '/myInfo',
  },
  {
    path: '/home',
    name: 'Home',
    meta: {
      title: '首页',
      tabShow: true,
    },
    component: () => import('../views/home/index.vue'),
  },
  {
    path: '/mySwimTicket',
    name: 'mySwimTicket',
    meta: {
      title: '我的泳票',
      tabShow: true,
    },
    component: () => import('../views/my/mySwimTicket.vue'),
  },
  // {
  //   path: '/test',
  //   name: 'test',
  //   meta: {
  //     title: 'test',
  //     tabShow: true,
  //   },
  //   component: () => import('../views/test/test.vue'),
  // },
]
const router = createRouter({
  history: createWebHistory(), // createWebHistory,createWebHashHistory
  routes,
})

export default router
